{template 'common/header'}
<div class="container">
    <div class="row">
        <div class="span12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        {$module['title']}
                    </h3>
                </div>
                <div class="panel-body">
                    <table class="table table-hover">
                        <Tr>
                            <Td>作者:{$module['author']}</Td>
                        </Tr>
                        <Tr>
                            <Td>版本号:{$module['version']}</Td>
                        </Tr>
                        <Tr>
                            <Td>ablity:{$module['ability']}</Td>
                        </Tr>
                        <Tr>
                            <Td>描述:{$module['description']}</Td>
                        </Tr>
                        <tr>
                            <td>
                                <button class="btn btn-primary">
                                    <<返回
                                </button>
                                <script language="javascript">
                                    function purchase() {
                                        if(window.confirm('确认购买？')){
                                            alert("暂未实现");
                                        }
                                    }
                                </script>
                                <button type="button" class="btn btn-danger" onclick="purchase()">购买 {php echo $module['price']==0?"免费":"￥".$module['price'];}
                                </button>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>